import request from '@/utils/request'
// import request from './edu/node_modules/@/utils/request'

//登录
export function login(username, password) {//登录
  return request({
    url: '/patentweb/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}

//根据token获取用户信息 
export function getInfo(token) {
  return request({
    url: '/patentweb/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post'
  })
}


